package com.module.union;

import org.xsocket.connection.INonBlockingConnection;

import com.connect.agreement.Packet;
import com.game.performers.Actor;

public class UnionManager {
	public static final byte CreateUnion = 1;
	public static final byte GetUnionList = 2;
	public static final byte EnterUnion = 3;
	public static final byte LeaveUnion = 4;
	public static final byte SetOffice = 5;
	public static final byte DropOffice = 6;
	public static final byte Contribution = 7;
	public static final byte GetUnionInfo = 8;
	
	
	public static void createUnion(Actor rid,String name){
		
	}
	
	public static void getUnionList(Actor rid){
		
	}
	
	public static void update(INonBlockingConnection nbc,Packet packet){
		if(packet==null){
			return;
		}
		if(!nbc.isOpen()){
			return;
		}
		switch(packet.getCmd()){
		case CreateUnion:
					
			break;
		case GetUnionList:
			
			break;
		case EnterUnion:
			
			break;
		case LeaveUnion:
			
			break;
		case SetOffice:
					
			break;
		case DropOffice:
			
			break;
		case Contribution:
			
			break;
		case GetUnionInfo:
			
			break;
		}
	}
}
